import mpMessageApi from '@/api/declaration/mp/mpMessageApi'
import httpRequest from '@/config/axios/httpRequest'

// 获得公众号消息分页
export const getMessagePage = (query: PageParam) => {
  return httpRequest.get(mpMessageApi.GetMessagePage, { params: query })
}

// 给粉丝发送消息
export const sendMessage = (data) => {
  return httpRequest.post(mpMessageApi.SendMessage, data)
}
